<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://cdn.bootcdn.net/ajax/libs/qs/6.10.1/qs.min.js"></script>
  <title>Document</title>
  <script>
    var qs = Qs
    var data = {
      username: 'admin1',
      password: '123321'
    }
    console.log('查询字符串',qs.stringify(data));
    console.log('JSON字符串',JSON.stringify(data));
  </script>
</head>
<body>
  
</body>
</html>